package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class StrategyReview extends BaseDomain{

    private Strategy strategy; // 点评的大攻略

    private User user; // 点评的用户

    private Integer rating; // 评分

    private int favs; // 点赞数

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; // 创建时间

    private String content; // 点评正文

    private String coverUrls; // 封面图
}
